// ignore_for_file: file_names
import 'package:flutter/material.dart';
import '../widget/swiper.dart';

class PageViewSwiper extends StatefulWidget {
  const PageViewSwiper({super.key});

  @override
  State<PageViewSwiper> createState() => _PageViewSwiperState();
}

class _PageViewSwiperState extends State<PageViewSwiper> {
  List<String> list = [];

  @override
  void initState() {
    super.initState();
    list = const [
      "https://t7.baidu.com/it/u=3124693600,356058981&fm=193&f=GIF",
      "https://t7.baidu.com/it/u=3124693600,356058981&fm=193&f=GIF",
      "https://t7.baidu.com/it/u=3124693600,356058981&fm=193&f=GIF",
    ];
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text("PageViewSwiper"),
      ),
      body: ListView(
        children: [
          Swiper(list: list),
        ],
      ),
    );
  }
}
